﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;

namespace _12._30._2014_MVC.Models
{
    public abstract class Character
    {
        public CharacterType Type { get; set; }
    }

    public class Jedi : Character
    {
        public Jedi()
        {
            Type = CharacterType.Jedi;
        }
    }

    public class BountyHunter : Character
    {
        public BountyHunter()
        {
            Type = CharacterType.BountyHunter;
        }
    }

    public class StarWarsViewModel
    {
        public List<Character> Characters { get; set; }
    }

    public enum CharacterType
    {
        [Description("Bounty Hunter")]
        BountyHunter,
        [Description("Jedi")]
        Jedi
    }
}